std::basic_ostream::write

From Cppreference

Jump to: navigation, search
​basic_ostream& write( const char_type* s, streamsize count );

Writes count characters to the stream. If ​good() != true, ​setstate(failbit) is called and the function returns. If inserting fails, ​setstate(badbit) is called and the function returns.

Contents

Parameters

s - pointer to the character string to write
count - number of characters to write

Return value

*this​

Example

See also

operator<<
inserts formatted data
(public member function)
put
inserts a character
(public member function)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages